package banking.domain;

public class Bank {
    private static Bank bankInstance = new Bank();
    private Customer[] customers = new Customer[10];
    private int numberOfCustomer;

    private Bank() {
        numberOfCustomer = 0;
    }

    public void addCustomer(String f, String l) {
        customers[numberOfCustomer] = new Customer(f, l);
        numberOfCustomer++;
    }

    public int getNumOfCustomers() {
        return numberOfCustomer;
    }

    public Customer getCustomer(int index) {
        return customers[index];
    }

    public static Bank getBank() {
        return bankInstance;
    }
}
